package com.lagou.edu.service.fallback;

import com.alibaba.csp.sentinel.slots.block.BlockException;

/**
 * @author caiwei
 * @date 2020-12-19 14:37
 */
public class LagouAuthCodeServiceHandlersClass {

    // 整体要求和当时Hystrix一样，这里还需要在形参最后添加BlockException参数，用于接收异常
    // 注意：方法是静态的
    public static Integer handleException(String email, String password, String code, BlockException blockException) {
        return -1;
    }

    public static Integer handleError(String email, String password, String code) {
        return 999;
    }
}
